/**
 * 
 */
package mdb.com.vn.persist;

import java.io.Serializable;
import java.util.List;

import org.springframework.stereotype.Repository;

import mdb.com.vn.model.Results;

/**
 * @author tu.dod
 *
 */
@Repository("resultsDAO")
public class ResultDAOImpl extends AbstractHibernateDAOImpl<Results, Integer> implements ResultDAO, Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@SuppressWarnings("unchecked")
	@Override
	public List<Results> getListResults() {
		// TODO Auto-generated method stub
		return getSession().getNamedQuery("Results.findAll").list();
	}

	@Override
	protected Class<Results> getDomainClass() {
		// TODO Auto-generated method stub
		return Results.class;
	}
}
